<html>
	<head>
		<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
		<title>
			Работа с вакансией
		</title>
	</head>
	<body>
		<form action="/addvacancy" method="post">
			{% if vacancy %}
				<div><input type="text" name="position" value="{{ vacancy.position }}"></div>
				<div><input type="text" name="salary" value="{{ vacancy.salary }}"></div>
				<div><input type="text" name="employment" value="{{ vacancy.employment }}"></div>
				<div><input type="text" name="education" value="{{ vacancy.education }}"></div>
				<div><input type="text" name="age" value="{{ vacancy.age }}"></div>
				<div><input type="text" name="sex" value="{{ vacancy.sex }}"></div>
				<div><input type="text" name="experience" value="{{ vacancy.experience }}"></div>
				<div><textarea name="description" rows="3" cols="60">{{ vacancy.description }}</textarea></div>
				<div><input type="hidden" name="actions" value="edit"></div>
				<div><input type="hidden" name="vacancyid" value="{{ vacancy.key.id }}"></div>
			{% else %}
				<div><input type="text" name="position"></div>
				<div><input type="text" name="salary"></div>
				<div><input type="text" name="employment"></div>
				<div><input type="text" name="education"></div>
				<div><input type="text" name="age"></div>
				<div><input type="text" name="sex"></div>
				<div><input type="text" name="experience"></div>
				<div><textarea name="description" rows="3" cols="60"></textarea></div>
				<div><input type="hidden" name="actions" value="add"></div>
			{% endif %}
			<div><input type="submit" value="Сохранить"></input></div>
		</form>
	</body>
</html>